package com.example.basesystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.basesystem.entity.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户角色关联Mapper接口
 */
@Mapper
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    /**
     * 删除用户角色关联
     *
     * @param userId 用户ID
     * @return 结果
     */
    int deleteByUserId(@Param("userId") Long userId);
}